﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdminHocKy.ascx.cs" Inherits="Controls_AdminHocKy" %>
 <link rel="stylesheet" href="Styles/960.css">
 <link rel="stylesheet" href="Styles/reset.css">
 <link rel="stylesheet" href="Styles/default.css">

<div class="adminHocKy">
    <div class="container_12">
        <div class="grid_12">
            <div class="grid_2">
                <asp:Label ID="lblTenHK" runat="server" Text="Nhập Tên Học Kỳ: "></asp:Label>  
            </div>
            
            <div class="grid_10">                 
                 <asp:TextBox ID="txtHocKy" MaxLength="20" runat="server" Width="200px"></asp:TextBox>  
            </div>
            </div>
        <div class="grid_12">
            <hr />
            <div class="grid_2">
                 <asp:Button ID="btnAdd" runat="server" Text="Thêm" />
            </div>
            <div class="grid_2">
                 <asp:Button ID="btnUpdate" runat="server" Text="Cập Nhật" />
             </div>
             <div class="grid_2">
                 <asp:Button ID="btnDelete" runat="server" Text="Xóa" />
             </div>
            </div>
       <div class="grid_12">
       <div class="grid_4">
           <asp:ListView ID="lvHocKy" runat="server" InsertItemPosition="LastItem" 
               onitemcommand="lvHocKy_ItemCommand" onsorting="lvHocKy_Sorting">
           <LayoutTemplate>
            <div class="listHocKyTitle">
                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Sort" CommandArgument="ID">Id</asp:LinkButton>&nbsp;&nbsp;
                <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Sort" CommandArgument="TenHocKy">Tên Học Kỳ</asp:LinkButton>
                <br />
                </div>
               <div style="border:dotted 1px black;">
                <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </div>
                 <asp:DataPager ID="ItemDataPager" runat="server" PageSize="5">
                    <Fields>
                        <asp:NumericPagerField ButtonCount="2" />
                    </Fields>
                </asp:DataPager> 
            </LayoutTemplate>        
            <ItemTemplate>
            <div class="listHocKyItem">
                <asp:Label ID="Label1" runat="server"><%#Eval("ID") %></asp:Label> 
                <asp:Label ID="Label2" runat="server"><%#Eval("TenHocKy")%></asp:Label>  
                 <asp:LinkButton ID="LinkButton6" runat="Server" Text="Edit" CommandName="Edit" />
                <br />
                </div>
            </ItemTemplate>
            <AlternatingItemTemplate>
               <div class="listHocKy">
                <asp:Label ID="Label1" runat="server"><%#Eval("ID") %></asp:Label> 
                <asp:Label ID="Label2" runat="server"><%#Eval("TenHocKy")%></asp:Label> 
                <asp:LinkButton ID="LinkButton6" runat="Server" Text="Edit" CommandName="Edit" />
                <br />
                </div>
            </AlternatingItemTemplate>
            <EditItemTemplate>
                   
                        <asp:TextBox ID="txtUpId" runat="server" Text='<%#Eval("ID") %>' Enabled="false" Width="20px"></asp:TextBox>
                   &nbsp;
                        <asp:TextBox ID="txtUpFname" runat="server" Text='<%#Eval("TenHocKy") %>' Width="100px"></asp:TextBox>
                    &nbsp;
                            <asp:LinkButton ID="lnkUpdate" runat="server" CommandName="Update">Update</asp:LinkButton>
                            <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Delete">Delete</asp:LinkButton>
                            <asp:LinkButton ID="lnkCancel" runat="server" CommandName="Cancel">Cancel</asp:LinkButton>
                   
            </EditItemTemplate>
                <InsertItemTemplate>
   
                <asp:TextBox ID="txtID" runat="server" Text='<%#Eval("ID") %>' Width="100px">ID</asp:TextBox>&nbsp;&nbsp;
                <asp:TextBox ID="txtName" runat="server" Text='<%#Eval("TenHocKy") %>' Width="100px">TenHocKy</asp:TextBox>      
                <td><asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="Insert" /></td>
   
            </InsertItemTemplate>   
           </asp:ListView>
           <div class="grid_12" id="item2">
 <asp:DataPager ID="DataPagerProducts" runat="server" PagedControlID="lvHocKy"
    PageSize="10">
    <Fields>
        <asp:NextPreviousPagerField ShowFirstPageButton="True" ShowNextPageButton="False" />
        <asp:NumericPagerField />
        <asp:NextPreviousPagerField ShowLastPageButton="True" ShowPreviousPageButton="False" />
    </Fields>
    </asp:DataPager>
    </div>
           </div>
       </div>
        </div>
    </div>
</div>
<p>
    &nbsp;</p>
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
